home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000434_news@columbia.edu _Thu Jul 27 15:11:28 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id PAA07281
for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 27 Jul 2000 15:11:27 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA08088
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 27 Jul 2000 15:11:27 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id PAA21501
for kermit.misc@watsun.cc.columbia.edu; Thu, 27 Jul 2000 15:06:31 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
Message-ID: <39808882.30D9433C@compuserve.com>
From: Sandy Rosenberg <SandyRosenberg@compuserve.com>
Subject: Re: K95 SCRIPTS WITH DIRECT SERIAL CONNECTION
Date: Thu, 27 Jul 2000 15:07:46 -0400
Organization: PCNet
To: kermit.misc@columbia.edu
Frank da Cruz wrote:
> In article <39789210.43E0A441@compuserve.com>,
> Sandy Rosenberg <SandyRosenberg@compuserve.com> wrote:
> : I am trying to write a K95 script to be used with a direct serial
> : connection to my Alphaserver running openVMS. I want to automatically
> : log in to the alpha, transfer a file, invoke a command, and log out. I
> : have done this with dial up connections without a problem. With the
> : direct connection however, the OUTPUT commands don't seem to go to the
> : connected system - they come out in the command window instead. Any
> : suggestions would be appreciated.
> :
> It probably means that the script did not succeed in opening the connection.
> Make sure your script specifies the same COM port that the cable is connected
> to, and that you have a null-modem cable (or a modem cable with a null-modem
> adapter).
>
> The script should go something like this:
>
> set input echo on ; So you can watch what happens
> set modem type none ; Tell K95 there is no modem
> set carrier-watch off ; This might or might not be necessary
> set port com1
> if fail stop 1 SET PORT failed
> set speed 19200 ; (or whatever)
> output \13 ; Send carriage return
> input 10 Username: ; Wait 10 seconds for Username: prompt
> if fail stop 1 No Username: prompt
>
> For a more fully elaborated example, see Chapter 19 of Using C-Kermit.
>
> Also see Chapter 3 about direct serial connections.
>
> - Frank
This works well on the PC on my desk, however on the PC where I need the script,
it does not seem to see the carriage returns that I send it. The way I created
the script was to use K95dialer to create a script, then I deleted the connect
statement at the end and added my code to log in and send a file. I cannot see
anything different in the two machines to explain their behavior. On the
troublesome machine, I can type OUTPUT \13 at the command prompt and it sends a
carriage return, but the script doesn't seem to.
Thanks again for any additional suggestions.
Sandy